package com.shuda.business.data.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuda.business.data.entity.ScriptConfigEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 脚本配置Mapper接口
 */
@Mapper
public interface ScriptConfigMapper extends BaseMapper<ScriptConfigEntity> {

    /**
     * 根据引擎ID删除配置
     */
    void deleteByEngineId(@Param("engineId") Long engineId);

    /**
     * 根据引擎ID获取配置
     */
    Object getConfigByEngineId(@Param("engineId") Long engineId);

    /**
     * 插入配置
     */
    void insertConfig(@Param("engineId") Long engineId, @Param("config") Object config);
}